package com.wish.g01.job.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @ClassName FinanceTask
 * @Description TODO
 * @Author MQ
 * @Date 2022/6/7 21:05
 */
/*@Configuration
@EnableScheduling*/
@Component
public class MyTask {

    @Autowired
    KafkaTemplate kafkaTemplate;

    public void print(){
        System.out.println("开始对账处理");
        //kafkaTemplate.send("test", UUID.randomUUID().toString(),"");
        System.out.println("结束对账处理");
    }
}
